package com.wangxiaotao.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author Wangxiaotao
 * @create 2021-09-04-23:50
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@ToString
public class CommonResult<T> {

    private Integer code;
    private String message;
    private T data;

    public CommonResult(Integer code, String message) {
        this(code,message,null);
    }
}
